{% extends "base.html" %}

{%- block total_posts %}
  {%- if terms and terms | length == 1 %}
    <li role="listitem">{{ terms | length }} tag and counting ...</li>
  {%- elif terms and terms | length > 1 %}
    <li role="listitem">{{ terms | length }} tags and counting ...</li>
  {% endif -%}
{% endblock -%}

{%- block main %}
  <nav aria-labelledby="list-of-tags" class="tag-list-nav">
    <ul role="list">
      {% for tag in terms %}
        <li role="listitem"><a href="{{ get_taxonomy_url(kind="tags", name=tag.name) }}">{{ tag.name }}</a><sup class="tag-sup">{{ tag.pages | length }}</sup></li>
      {% endfor %}
    </ul>
  </nav>
{% endblock -%}
